package cn.dong.vod.handler;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class VodHandler implements InitializingBean {

    @Value("${alibaba.oss.accessKeyId}")
    private String accessKeyId;
    @Value("${alibaba.oss.accessKeySecret}")
    private String accessKeySecret;
    @Value("${alibaba.oss.workStream}")
    private String workStream;
    @Value("${alibaba.oss.codingTemplate}")
    private String codingTemplate;

    public static String ACCESS_KEY_ID_INFO;
    public static String ACCESS_KEY_SECRET_INFO;
    public static String CODING_TEMPLATE;
    public static String WORK_STREAM;

    public void afterPropertiesSet() throws Exception {
        ACCESS_KEY_ID_INFO = accessKeyId;
        ACCESS_KEY_SECRET_INFO = accessKeySecret;
        WORK_STREAM = workStream;
        CODING_TEMPLATE = codingTemplate;
    }
}
